﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<%
	if (User.IsInRole("Admin") || User.IsInRole("Mod")) {
%>
<div>
	<div>
		<div>
			<object type="image/svg+xml" data="http://localhost/web/img?src=settings"></object>
		</div>
		<div>
			Adminster
		</div>
	</div>
	<div id="menuAdmin" class="menu2">
		<div>
			<a href="<%: Url.Action("Administer","Occasion") %>">
				<div>
					<object type="image/svg+xml" data="http://localhost/web/img?src=occasion"></object>
				</div>
				<div>Occasion</div>
			</a>
		</div>
		<div>
			<a href="<%: Url.Action("Administer","Product") %>">
				<div>
					<object type="image/svg+xml" data="http://localhost/web/img?src=product"></object>
				</div>
				<div>Product</div>
			</a>
		</div>
		<%
		if (User.IsInRole("Admin")) {
		%>
		<div>
			<a href="<%: Url.Action("Administer","Order") %>">
				<div>
					<object type="image/svg+xml" data="http://localhost/web/img?src=order"></object>
				</div>
				<div>Order</div>
			</a>
		</div>
		<div>
			<a href="<%: Url.Action("Administer","User") %>">
				<div>
					<object type="image/svg+xml" data="http://localhost/web/img?src=group"></object>
				</div>
				<div>Users</div>
			</a>
		</div>
		<%
		} else {
		%>
		<div>
			<a href="<%: Url.Action("AdministerShip","Order") %>">
				<div>
					<object type="image/svg+xml" data="http://localhost/web/img?src=delivery"></object>
				</div>
				<div>Delivery</div>
			</a>
		</div>
		<%
		}
		%>
		<div>
			<a href="<%: Url.Action("Administer","Img") %>">
				<div>
					<object type="image/svg+xml" data="http://localhost/web/img?src=photos"></object>
				</div>
				<div>Images</div>
			</a>
		</div>
		<div>
			<a href="<%: Url.Action("RealTime", "Home", new {returnUrl=HttpContext.Current.Request.Url.AbsoluteUri})%>">
				<div>
					<object type="image/svg+xml" data="http://localhost/web/img?src=<%:(bool)Session["realtime"]?"RToff":"RTon"%>"></object>
				</div>
				<div><%:(bool)Session["realtime"]?"Turn Off":"Turn On" %></div>
			</a>
		</div>
	</div>
</div>
<%} else { %>
<div>
	<a href="<%: Url.Action("Introduction", "Home")%>">
		<div>
			<object type="image/svg+xml" data="http://localhost/web/img?src=info"></object>
		</div>
		<div>Introduction</div>
	</a>
</div>
<%}%>